package cz.anime.ppro.logic;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import cz.anime.ppro.model.Rss;
import cz.anime.ppro.repositories.RssRepository;

@Component
public class RssComponentImpl implements RssComponent {

	@Autowired
	private RssRepository rssRepository;
	
	@Override
	public List<Rss> getRsses() {
		return rssRepository.findAll();
	}

}
